package com.zryc.shop.oms.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.zryc.shop.oms.entity.OrderSetting;
import com.zryc.shop.oms.mapper.OrderSettingMapper;
import com.zryc.shop.oms.service.IOrderSettingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zryc.shop.pms.entity.ProductCategory;
import com.zryc.shop.ums.entity.Admin;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单设置表 服务实现类
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-18
 */
@Service
public class OrderSettingServiceImpl extends ServiceImpl<OrderSettingMapper, OrderSetting> implements IOrderSettingService {

    /**
     * 修改订单超时设置
     *
     * @param id
     * @param orderSetting
     * @return
     */
    @Override
    public Object updateTimeOrder(Long id, OrderSetting orderSetting) {
        UpdateWrapper<OrderSetting> updateWrapper = new UpdateWrapper<>();
        updateWrapper.eq("id",id);
        baseMapper.update(orderSetting,updateWrapper);
        return null;
    }
}
